package com.palm.hubo2o.model;

import android.support.annotation.StringDef;

import com.google.gson.annotations.Expose;

import java.lang.annotation.Retention;

import static java.lang.annotation.RetentionPolicy.SOURCE;

/**
 * Created by wongqi on 16/6/7.
 */
public class PalmSMS {
    public static final String register = "register";//注册
    public static final String findPwd = "findPwd";//找回密码
    public static final String modifyMobile = "modifyMobile";//修改手机号

    @Retention(SOURCE)
    @StringDef({register, findPwd, modifyMobile})
    public @interface SMSType {
    }

    @Expose
    private String mobile;//手机号
    @Expose
    private String type;//短信类型

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @SMSType
    public String getType() {
        return type;
    }

    public void setType(@SMSType String type) {
        this.type = type;
    }
}
